home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 076-100 / disk_092 / as6502 / as6502.man < prev    next >
Text File  |  1992-05-06  |  7KB  |  199 lines

  1.  
  2.  
  3.  
  4. AS6502(5)           UNIX Programmer's Manual            AS6502(5)
  5.  
  6.  
  7.  
  8. NNNNNNAAAAAAMMMMMMEEEEEE
  9.      as6502 - assembler for MOS Technology 650X microprocessors
  10.  
  11. SSSSSSYYYYYYNNNNNNOOOOOOPPPPPPSSSSSSIIIIIISSSSSS
  12.      aaaaaassssss666666555555000000222222 [ option ] [ parameters] file ...
  13.  
  14. DDDDDDEEEEEESSSSSSCCCCCCRRRRRRIIIIIIPPPPPPTTTTTTIIIIIIOOOOOONNNNNN
  15.      _A_s_6_5_0_2 assembles the named files and produces a listing on
  16.      the standard output.  Available options are:
  17.  
  18.      ------iiiiii  ignore .nlst pseudo ops in the source file.
  19.  
  20.      ------llllll  produce only an error listing on the standard output.
  21.  
  22.      ------nnnnnn  print address in normal <high byte><low byte> format,
  23.          rather than split <low byte>:<high byte> format.
  24.  
  25.      ------oooooo  generate the ASCII object file 666666555555000000222222......oooooouuuuuutttttt...... The per-line
  26.          format of that file is:
  27.              ;<address low byte><address high byte><data>...
  28.  
  29.      ------ssssss  print symbol table at the end of the assembly listing.
  30.  
  31.      ------mmmmmm  Causes the object file to be output in standard MOS
  32.          Technology format.  This option implys -o.
  33.  
  34.      Parameters:
  35.          Parameters consist of an option character followed by a
  36.          value.  The value may follow with or without whitespace.
  37.          All values are decimal numbers.  Available parameters
  38.          are:
  39.  
  40.      ------tttttt  Specify the size of the symbol table.  The default is
  41.          20000 bytes.  Values less than 1000 are not accepted.
  42.  
  43.      ------pppppp  Specify the number of lines per page. This does not
  44.          include the heading.  The heading uses an additional 4
  45.          lines.  The default is 60, which gives 3 blank lines
  46.          between pages on a 66 line page (1 line at the top and 2
  47.          lines at the bottom).  A form feed precedes the head-
  48.          ings.  Specifying 0 for page size results in no heading
  49.          at all.
  50.  
  51.      ------wwwwww  Specify the number of characters per line on the listing
  52.          file.  The default is 132.  The minimum allowed is 80
  53.          and the maximum is 133.
  54.  
  55.      Symbol conventions:
  56.          Up to 19 alphanumeric (a-z | A-Z | 0-9 | . | _) charac-
  57.          ters, with initial character non-numeric.
  58.  
  59.          Asterisk (*) is symbolic name of the location counter.
  60.  
  61.  
  62.  
  63. Printed 12/18/86            12/11/86                            1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. AS6502(5)           UNIX Programmer's Manual            AS6502(5)
  71.  
  72.  
  73.  
  74.      Op code mnemonics (upper and/or lower case):
  75.          ADC   BIT   BVS   CPX   INC   LDX   PHP   RTI   SEI  TAY
  76.          AND   BMI   CLC   CPY   INX   LDY   PLA   RTS   STA  TSX
  77.          ASL   BNE   CLD   DEC   INY   LSR   PLP   SBC   STX  TXA
  78.          BCC   BPL   CLI   DEX   JMP   NOP   ROL   SEC   STY  TXS
  79.          BCS   BRK   CLV   DEY   JSR   ORA   ROR   SED   TAX  TYA
  80.          BEQ   BVC   CMP   EOR   LDA   PHA
  81.  
  82.      Pseudo op mnemonics:
  83.          =      equate label to operand value.
  84.          *=     equate location counter to operand value.
  85.          .WORD  assign 16 bit operand value to next 2 locations.
  86.          .DBYT  assign 16 bit value to next 2 locations, reverse.
  87.          .BYTE  assign 8 bit operand value to next location.
  88.          .NLST  turn listing mode off.
  89.          .LIST  turn listing mode on.
  90.          .PAGE  start a new listing page.  A title enclosed in ""
  91.          is optional.  The title must be small enough to fit in
  92.          the heading line.
  93.  
  94.      Constant types:
  95.          %       binary number prefix.
  96.          @ or 0  octal number prefix.
  97.          $       hexadecimal number prefix.
  98.          '       ASCII character prefix.
  99.          "       ASCII character string prefix and suffix.
  100.          default (leading digit 1 through 9)  decimal number.
  101.  
  102.      Operand field operators:
  103.          +     addition               ^     logical exclusive OR
  104.          -     subtraction            ~     logical 1's comple-
  105.          ment
  106.          /     integer division       $     logical AND
  107.          *     multiplication         |     logical OR
  108.          %     modulo                 <     low byte
  109.                                       >     high byte
  110.  
  111. FFFFFFIIIIIILLLLLLEEEEEESSSSSS
  112.      /BIN/as6502   the assembler
  113.      6502.out      object (with -o option)
  114. SSSSSSEEEEEEEEEEEE AAAAAALLLLLLSSSSSSOOOOOO
  115.      J. H. Van Ornum, "as6502 User Notes"
  116. DDDDDDIIIIIIAAAAAAGGGGGGNNNNNNOOOOOOSSSSSSTTTTTTIIIIIICCCCCCSSSSSS
  117. File handling diagnostics:
  118.      Invalid argument count - as6502 invoked without a source
  119.                file or with too many source files.
  120.      Open error for file <name> - as6502 cannot open source file.
  121.      Create error (6502.out) - as6502 cannot create object file.
  122.      Close error - as6502 cannot close the source file.
  123.      Close error (6502.out) - as6502 cannot close object file.
  124. Assembly error diagnostics:
  125.      Symbol table full - symbol table overflowed allotted space.
  126.  
  127.  
  128.  
  129. Printed 12/18/86            12/11/86                            2
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. AS6502(5)           UNIX Programmer's Manual            AS6502(5)
  137.  
  138.  
  139.  
  140.                Number of symbols is a function of symbol sizes.
  141.      Label multiply defined - symbol defined more than once.
  142.      Sync error - the pass 2 value of symbol in the label field
  143.                is different than the pass 1 value.
  144.      Invalid operation code - op code mnemonic is invalid.
  145.      Operand field missing - the op code mnemonic requires an
  146.                operand, and none was found.
  147.      Invalid operand field - operand field contains an operator
  148.                which is not recognized by as6502.
  149.      Invalid branch address - branch instruction to a location
  150.                which is out of range.
  151.      Invalid addressing mode - tried to use an addressing mode
  152.                which is not available to the operation code.
  153.      Operand field size error - operand is larger than hex FF.
  154.      Undefined symbol in operand field - a symbol in the operand
  155.                field never appeared in the label field.
  156. BBBBBBUUUUUUGGGGGGSSSSSS
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192. Printed 12/18/86            12/11/86                            3
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.